package com.game.astd.spirit;

public enum GameState {
	RUN(0), // 已经登录了WEB官网，但是还没有创建JSESSIONID,无法进行游戏
	PAUSE(1), // 已经登录了游戏
	STOP(2);// 已经登录了游戏
	public int state;

	private GameState(int state)
	{
		this.state = state;
	}

	public static GameState valueOf(int state)
	{
		if (state == 0)
		{
			return RUN;
		}
		if (state == 2)
		{
			return STOP;
		}

		return PAUSE;
	}

}
